package com.forum.module.system.controller.admin.role.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * 功能:
 * 作者:ouyzh
 * 日期:2025/3/15 20:53
 */
@Schema(description = "管理后台 - 角色创建/修改 请求视图对象")
public class RoleSaveReqVO {
    @Schema(description = "角色编号", example = "1")
    private Long id;

    @Schema(description = "用户编号", example = "1")
    private Long userId;

    @Schema(description = "角色名称", example = "管理员")
    @Size(max = 32, message = "角色名称最长为32字符")
    @NotBlank(message = "角色名称不能为空")
    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
